using System;
using UnityEngine;

public class UIManager : MonoBehaviour
{
    public GameObject mPanelFirst;
    public GameObject mPanelSecond;
    
    public void OpenPanelByEnum(EPanel type)
    {
        switch (type)
        {
            case EPanel.First:
                mPanelSecond.SetActive(false);
                mPanelFirst.SetActive(true);
                break;
            case EPanel.Second:
                mPanelSecond.SetActive(true);
                mPanelFirst.SetActive(false);
                break;
            default:
                break;
        }
    }
}
